<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>点击事件</title>
</head>
<body>
    <h3>①input点击事件(onfocus)</h3>
    <h3>②input失去焦点事件(onblur)</h3>
    <input type="text" id="inp" onfocus="show()"><br>
    <h2><span id="d1"></span></h2><br>
    <button id="btn" onclick="show_btn()">继   续</button>
    <script>
        function show() {
            d1.innerHTML = '获取小游戏';
        }
        function show_btn() {
            d1.innerHTML = inp.value;
            console.log(inp.value);
        }
    </script>
</body>
</html>